<?php

use yii\bootstrap\BootstrapAsset;
BootstrapAsset::register($this);

?>

    <select multiple class="form-control" id="kucunsel" style="height: 400px;">
        <?php foreach ($list as $key => $row){ ?>
            <option value="<?= $row['id'] ?>">
                仔猪编号：<?= $row['no'] ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                仔猪毛重：<?= $row['grossweight'] ?>kg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                参考成本：<?= $row['totalcost'] ?>元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </option>
        <?php } ?>
    </select>